package org.example.dao.dto.log;

import lombok.Data;

/**
 * @author 22449
 */
@Data
public class EsLog {

    private String date;

    private String userId;

    private String className;

    private String methodName;

    private String paramMsg;

    private String ip;

    private String httpMethod;

    private String httpContentType;

    private String httpHeader;

    private String httpBodyMeg;

    private String httpPath;

    @Override
    public String toString() {
        return "trace:" +"用户："+ userId + "访问" + className + "类的：" + methodName + "方法，携带参数为：" + paramMsg;
    }

    public String toString1(){
        return "trace:" +"ip："+ ip + "访问" + httpPath + "  方法:" + httpMethod + "  content-type:" + httpContentType + "  header:" + httpHeader + "  bodymsg:" + httpBodyMeg;
    }
}
